package org.rex.udig.client;

public class GameFunction {
	private TCPClient tcpc;
	GameGUI ggui;
	
	public GameFunction(TCPClient tc) {
		ggui = new GameGUI(this);
		tcpc = tc;
		//ggui.jp_paint.setMouseListener();
		getUserList();
	}
	
	public void getUserList() {
		tcpc.SendInfo_GetUserList(ggui);
	} 
	
	public void sendMessage(String s) {
		tcpc.SendMessage(s);
	}
	
	public void synchronizePaintBoard() {
		tcpc.SynchronizePaintBoard(ggui.jp_paint.Array_PP);
	}
	
	public void sendExitInfo() {
		tcpc.SendExitInfo();
	}
	
	public void sendStartGameInfo(boolean flag) {
		tcpc.SendStartGameInfo(flag);
	}
}
